﻿using QuanLyGiaoVuDAL.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuanLyGiaoVuDAL.Repositories.DatabaseRepositories
{
    public interface ITaiLieuRepository
    {
        TaiLieuDTO GetTaiLieuById(Guid id);
        IEnumerable<TaiLieuDTO> GetAllTaiLieu(Guid? maThuMuc, bool? timThuMucCon, Guid? maLoaiTaiLieu, Guid? maNguoiTao, bool? chiaSe);
        TaiLieuDTO InsertTaiLieu(TaiLieuDTO taiLieu);
        TaiLieuDTO UpdateTaiLieu(TaiLieuDTO taiLieu);
        bool DeleteTaiLieu(Guid id);

        IEnumerable<LoaiTaiLieuDTO> GetLoaiTaiLieu(Guid? maLoaiTaiLieu);

        ThuMucDTO TaoThuMucMoi(ThuMucDTO thuMuc);
        ThuMucDTO SuaThuMuc(ThuMucDTO thuMuc);
        bool XoaThuMuc(Guid id);
        IEnumerable<ThuMucDTO> GetThuMuc(Guid? thuMucId);
        IEnumerable<ThuMucDTO> GetThuMucConByMaThuMucCha(Guid? id);
        String GetDuongDanThuMuc(Guid thuMucId);
    }
}
